
import { getConfigApi } from '@/api/system/config'
import { parseTime } from './tools/date'
import { deepClone } from './tools/object'
import { resetForm, addDateRange, dataToForm, listToTree, parseRows, staticUrl } from './frame'




export default {
  install(Vue) {
    // 全局过滤器
    Vue.filter('parseTime', (time, format) => {
      return parseTime(time, format)
    })
    Vue.prototype.getConfig = getConfigApi
    Vue.prototype.parseTime = parseTime
    Vue.prototype.resetForm = resetForm
    Vue.prototype.dataToForm = dataToForm
    Vue.prototype.deepClone = deepClone
    Vue.prototype.addDateRange = addDateRange
    Vue.prototype.listToTree = listToTree
    Vue.prototype.staticUrl = staticUrl
  }

}
